
package com.ting.template.core.common.exception;

public enum AbeyErrorCode {
	
	SUCCESS("000000","成功"),
	
	/** 基本参数校验错误   **/
	PARAM_ERROR("PARAM_ERROR","参数校验错误"),
	AMOUNT_INVALID("AMOUNT_INVALID","金额不合法"),
	
	/** 其他错误   **/
	BUSINESS_ERROR("BUSINESS_ERROR","业务错误"),
	DATABASE_ERROR("DATABASE_ERROR","数据库异常"),
	SYSTEM_ERROR("SYSTEM_ERROR","系统错误"),
	SYSTEM_BUSI("SYSTEM_BUSI","系统繁忙")
	;

	private String code;
	
	private String msg;
	
	private AbeyErrorCode(){}
	
	private AbeyErrorCode(String code, String msg){
		this.code=code;
		this.msg=msg;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
	
}
